package com.wennimei.dao;

import com.wennimei.domain.Parameters;

import net.paoding.rose.jade.annotation.DAO;
import net.paoding.rose.jade.annotation.SQL;

@DAO
public interface ParameterDAO {

    @SQL("select max(id) from zol_parameters")
    public Integer getMaxId();

    @SQL("insert into zol_parameters (id,title,parameters,pic_url,add_time) values (:1,:2,:3,:4,now())")
    public void insert(int id, String title, String content, String picUrl);

    @SQL("select * from zol_parameters where id = :1")
    public Parameters get(int id);
}
